TEMPLATE -------- The template must be a well-formed HTML document. All tokens must be in UPPERCASE. All tokens begin and end with tweo underscore characters "__". GENERAL TOKEN DESCRIPTION: -------------------------- __LINK__ Replaced with the actual HTML link (i.e. URL with its associated description, and optionally date). This token should only occur ONCE, in the section of the template (See section entitled "__LINK__ TOKEN SYNTAX" below in this file.) __URLCOUNT__ Replaced with the number of URLs stored. __GENDATE__ Replaced with the date the HTML file was saved. __GENTIME__ Replaced with the time the HTML file was saved. __TITLE__ Replaced with the "HTML Title" string (you can set it in program Options, "Files" tab, "Title for the HTML file" edit box). __LINK__ TOKEN SYNTAX --------------------- This token is expanded to another string of tokens: __URLLINK__ (the actual URL, e.g. "http://www.example.com") __URLDESC__ (the description string, e.g. "Example website". If description is empty, URL is used instead.) __URLDESC!__ (the description string, included ONLY if the description is non-empty. Otherwise the token is discarded and no text is put in its place) __URLDATE__ (the date the URL was added to the Visit list) By default, the __LINK__ token is expanded to: __URLDESC__ If you want to change it, edit the first line of the template, where this format is defined. Please note how the first line in the sample template provided with the program is formatted: This is an HTML comment. The actual text must be contained between two hash characters (#). The whole string can span over several lines, but it MUST begin with "" (no quotes). To be valid, the string MUST contain at least the __URLLINK__ token (without it, the whole file would be useless, as there would be no place to save the URL links!). It is OK to use the same token more than once, e.g. __URLLINK__ if you don't want to see the descriptions in the HTML file. Another example: __URLLINK__
(__URLDESC__; __URLDATE__) Try these and see what happens. Remember to wrap these examples with the comment delimiters and hashes: Example of how the __LINK__ definition can span multiple lines: Note: Do NOT place the above three tokens in the body of the template. They have no meaning there. They are only used to form the proper __LINK__ token. See also: sample template included with the program distribution (template.tpl). Questions? Suggestions? Email me at: marek jedlinski No HTML-formatted email please!